﻿using System;
using NHibernate.Validator.Constraints;

namespace DataStore.Domain
{
    /// <summary>
    /// Condition of the document
    /// </summary>
    [Serializable]
    public class Condition
    {
        /// <summary>
        /// Gets or sets the id.
        /// </summary>
        /// <value>The id.</value>
        public virtual Guid Id { get; set; }
        /// <summary>
        /// Gets or sets the descriptive text.
        /// </summary>
        /// <value>The text.</value>
        [NotNullNotEmpty]
        public virtual string Text { get; set; }
        /// <summary>
        /// Gets or sets the percentage of fineness.
        /// </summary>
        /// <value>The percentage.</value>
        public virtual float Percentage { get; set; }
    }
}
